package com.db.patterns.server;

import com.db.patterns.cache.Cache;
import com.db.patterns.cache.server.AbstractServerCache;
import com.db.patterns.protocol.Protocol;
import com.db.patterns.server.listener.ServerListener;
import com.db.patterns.transport.Transport;

/**
 * @author nulls.narik
 */
public abstract class AbstractServer extends AbstractServerCache {

    public void addNewClientCache(Transport transport, Protocol protocol) {
        this.addListener(new ServerListener(transport, protocol));
    }

}
